function fileQueued(file) {
	try {
		var progress = new FileProgress(file, this.customSettings.progressTarget);
		progress.setStatus(SWFUpload.lang['pending']+"...");
		progress.toggleCancel(true, this);

	} catch (ex) {
		this.debug(ex);
	}

}

function fileDialogComplete(numFilesSelected, numFilesQueued) {
	try {
		if (numFilesSelected > 0) {
		}
		
		this.startUpload();
	} catch (ex)  {
        this.debug(ex);
	}
}

function uploadStart(file) {
	try {
		var progress = new FileProgress(file, this.customSettings.progressTarget);
		progress.setStatus(SWFUpload.lang['uploading']+"Uploading...");
		progress.toggleCancel(true, this);
	}
	catch (ex) {}
	
	return true;
}

function uploadProgress(file, bytesLoaded, bytesTotal) {
	try {
		var percent = Math.ceil((bytesLoaded / bytesTotal) * 100);

		var progress = new FileProgress(file, this.customSettings.progressTarget);
		progress.setProgress(percent);
		progress.setStatus(SWFUpload.lang['uploading']+"...");
	} catch (ex) {
		this.debug(ex);
	}
}

function uploadSuccess(file, serverData) {alert(serverData);}

function uploadComplete(file) {
	try {
		var progress = new FileProgress(file, this.customSettings.progressTarget);
		progress.setComplete();
		progress.setStatus(SWFUpload.lang['complete']+".");
		progress.toggleCancel(false);
	} catch (ex) {
		this.debug(ex);
	}

	$('#'+file.id + ' .progressContainer').prepend('<a href="#" class="progressRemove" onclick="$(\'#'+file.id+'\').hide();"></a>');
	if (this.getStats().files_queued === 0) {
	}
}

function queueComplete(numFilesUploaded) {}
